package com.seashop.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Value;

import java.io.Serializable;

/**
 * @author moredln
 * @desc 谷歌翻译请求参数
 * @date 2020-08-11 11:30
 */
@Data
@ApiModel(value = "本地翻译请求参数")
public class LocalTransRequestParam implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "单条内容")
    private String text;

    @ApiModelProperty(value = "语言来源")
    private String fromLanguage;

    @ApiModelProperty(value = "翻译语言")
    private String toLanguage;

    public LocalTransRequestParam(String text, String fromLanguage, String toLanguage) {
        this.text = text;
        this.fromLanguage = fromLanguage;
        this.toLanguage = toLanguage;
    }
}
